//microcommand define -lnnbot-user-gender
signature("<m:fragment> <f:fragment> [x:fragment] <und:fragment>", { strictOptions: true })
action(async ({ session, args }) => {
let i = 0
if (session.onebot) try {
const { sex } = await session.onebot.getStrangerInfo(session.userId)
if (sex === "male") i = 1
else if (sex === "female") i = 2
} catch {}
return args.at(i - 1)
})